<template>
  <div class="email-template-container">
    <el-tabs v-model="activeName" @tab-click="handleClick" class="email-task-tabs">
      <el-tab-pane label="邮件群发" name="massMessaging">
        <email-mass-messaging v-if="activeName === 'massMessaging'"></email-mass-messaging>
      </el-tab-pane>
      <el-tab-pane label="邮件任务" name="bulkTask">
        <email-bulk-task v-if="activeName === 'bulkTask'"></email-bulk-task>
      </el-tab-pane>

    </el-tabs>
  </div>
</template>

<script>
import EmailMassMessaging from "@/views/emailtask/EmailMassMessaging.vue";
import EmailBulkTask from "@/views/emailtask/EmailBulkTask.vue";

export default {
  name: "EmailTaskMessaging",
  components: {
    EmailMassMessaging,
    EmailBulkTask
  },
  data() {
    return {
      activeName: 'massMessaging'
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
};
</script>

<style scoped>
.email-template-container {
  padding: 20px;
  background-color: #fff;
  min-height: 100vh;
}

.email-task-tabs >>> .el-tabs__item {
  font-size: 15px;
  height: 50px;
  line-height: 50px;
}

.email-task-tabs >>> .el-tabs__active-bar {
  height: 3px;
}
</style>
